﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fiuba.Algo3.Titiritero.Vista;
using System.Drawing;
using System.IO;
namespace BattleCity
{
    class VistaGrizzlyBattle : Cuadrado
    {
        public VistaGrizzlyBattle(TanqueGrizzlyBattle unTanque)
            : base(30, 30, System.Drawing.Color.Blue)
        {
            this.Posicionable = unTanque;
            this.Direccionable = unTanque;
        }
        public override Bitmap ObtenerImagen()
        {
            string file = @"Images\Grizzly.jpg";
            if (!File.Exists(file))
            {
                throw new FileNotFoundException();
            }

            return (new Bitmap(file));
        }
    }
    class VistaIFV : Cuadrado
    {
        public VistaIFV(TanqueIFV unTanque)
            : base(30, 30, System.Drawing.Color.Blue)
        {
            this.Posicionable = unTanque;
            this.Direccionable = unTanque;
        }
        public override Bitmap ObtenerImagen()
        {
            return (new Bitmap(@"Images\IFV.jpg"));
        }
    }
    class VistaMirage : Cuadrado
    {
        public VistaMirage(TanqueMirage unTanque)
            : base(30, 30, System.Drawing.Color.Blue)
        {
            this.Posicionable = unTanque;
            this.Direccionable = unTanque;
        }
        public override Bitmap ObtenerImagen()
        {
            string file = @"Images\Mirage.jpg";
            if (!File.Exists(file))
            {
                throw new FileNotFoundException();
            }

            return (new Bitmap(file));
        }
    }
    class VistaUser : Cuadrado
    {
        public VistaUser(TanqueUser unTanque)
            : base(30, 30, System.Drawing.Color.Blue)
        {
            this.Posicionable = unTanque;
            this.Direccionable = unTanque;
        }
        public override Bitmap ObtenerImagen()
        {
            string file = @"Images\Algotank.jpg";
            if (!File.Exists(file))
            {
                throw new FileNotFoundException();
            }

            return (new Bitmap(file));
        }
    }
}
